package lang;

/**
 * @author xiaoming
 * @version 1.0
 * @date 2018/12/18 21:50
 **/
public class IntegerTest {
    public static void main(String[] args) {
        System.out.println("依次为 -1, 0 , 1 : ");
        System.out.println("1 < 2 : " + Integer.compare(1,2));
        System.out.println("1 = 1 : " + Integer.compare(1, 1));
        System.out.println("2 > 1 : " + Integer.compare(2, 1));
    }
}
